package com.ydd.mapper;

import com.ydd.entity.Page.AllCate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (YddCate)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-29 12:08:38
 */
@Mapper
public interface YddCateMapper {
    @Select("select id,catename,sort_num as num from ydd_cate")
    List<AllCate> getCatesList();
    @Select("select count(*) from ydd_cate")
    Integer gettotalNumber();
}

